﻿CREATE PROCEDURE dbo.SP_Emails_Insert
	@Code Char (5)  =  NULL 
		, @Description NVarChar (Max)  =  NULL 
		, @Subject NVarChar (256)  =  NULL 
		, @Template NVarChar (Max)  =  NULL 
		, @TemplateResourcesPaths NVarChar (256)  =  NULL 
		AS
			INSERT INTO Emails
			(
									Code
												,Description
												,Subject
												,Template
												,TemplateResourcesPaths
									)
			Values(
									@Code
												,@Description
												,@Subject
												,@Template
												,@TemplateResourcesPaths
						)
			return @@identity